package vn.nt.healthcare.server.ws.service.impl;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import vn.nt.healthcare.server.ws.domain.Location;
import vn.nt.healthcare.server.ws.repositories.LocationRepository;
import vn.nt.healthcare.server.ws.service.LocationService;

@Service("locationService")
@Transactional
public class LocationServiceImpl implements LocationService, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Autowired
	private LocationRepository locationRepository;
	
	@Override
	public Location findLocationById(String uuid) {
		return locationRepository.findByUuid(uuid);
	}

}
